package models

import "time"

type Role struct {
	Id          int64     `json:"id,omitempty" gorm:"column:id"`
	Name        string    `json:"name" gorm:"column:name" description:"名称"`
	Enable      *bool     `json:"enable,omitempty" gorm:"column:enable" description:"启用"`
	CreatedDate time.Time `json:"createdDate,omitempty" gorm:"column:created_date" description:"创建时间"`
}

func (r *Role) TableName() string {
	return "sys_role"
}
